package com.ruan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruan.mapper.OverTimeSetMapper;
import com.ruan.pojo.OverTimeSet;
import com.ruan.service.OverTimeSetService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class OverTimeSetServiceImpl extends ServiceImpl<OverTimeSetMapper, OverTimeSet> implements OverTimeSetService {

    @Resource
    private OverTimeSetMapper overTimeSetMapper;

    /**
     * 获取加班设置
     * @return
     */
    @Override
    public OverTimeSet getOverTimeSet() {
        OverTimeSet overTimeSet = overTimeSetMapper.selectOne(null);
        return overTimeSet;
    }
}
